/* 
 * File:   screen.h
 * Author: brunoslr
 *
 * Created on 15 de Setembro de 2009, 17:11
 */

#include "spaceship.h"
#include "Enemy.h"

#ifndef _SCREEN_H
#define	_SCREEN_H

enum direction {left=-1,right=1};

//desenho da tela inicial
void drawInitialScreen();
void drawEndScreenWinner();
void drawGameOver();


void init(void);
void display(void);
void redesenha(int time);
void timer(int time);
void idle(void);
void drawScreenPaper(void);
void loadTextures(void);
void drawSpaceship(void);

int  initGame();

//desenho das estrelas
void initStars(void);
void reloadStars(void);
int drawOnScreen(GLuint tex_flag, const double *color, double x, double y);
int drawSpeedBar(void);

//desenho e movimento dos inimigos
void enemyGrid(double x, double y);
void moveEnemies(void);
int sideToMove(void);
int drawEnemies(int x,int y, GLint texture);
int stageLogic(int x, int y);
void deleteEnemyGrid(double x, double y);
int testEnemyAlive(double x, double y);

//funcao de depuracao
int debugVariables();

void teclado(unsigned char c, int x, int y);
void moveMouse (int x, int y);
void MouseAndandoPressionado (int x, int y);
void clicaMouse(int button, int state, int x, int y);




#endif	/* _SCREEN_H */

